package com.cangshukj.junong.service.impl;

import java.util.List;
import com.cangshukj.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cangshukj.junong.mapper.SalesServiceMapper;
import com.cangshukj.junong.domain.SalesService;
import com.cangshukj.junong.service.ISalesServiceService;

/**
 * 销告服务服务信息Service业务层处理
 * 
 * @author wangjie
 * @date 2025-04-01
 */
@Service
public class SalesServiceServiceImpl implements ISalesServiceService 
{
    @Autowired
    private SalesServiceMapper salesServiceMapper;

    /**
     * 查询销告服务服务信息
     * 
     * @param id 销告服务服务信息主键
     * @return 销告服务服务信息
     */
    @Override
    public SalesService selectSalesServiceById(String id)
    {
        return salesServiceMapper.selectSalesServiceById(id);
    }

    /**
     * 查询销告服务服务信息列表
     * 
     * @param salesService 销告服务服务信息
     * @return 销告服务服务信息
     */
    @Override
    public List<SalesService> selectSalesServiceList(SalesService salesService)
    {
        return salesServiceMapper.selectSalesServiceList(salesService);
    }

    /**
     * 新增销告服务服务信息
     * 
     * @param salesService 销告服务服务信息
     * @return 结果
     */
    @Override
    public int insertSalesService(SalesService salesService)
    {
        salesService.setCreateTime(DateUtils.getNowDate());
        return salesServiceMapper.insertSalesService(salesService);
    }

    /**
     * 修改销告服务服务信息
     * 
     * @param salesService 销告服务服务信息
     * @return 结果
     */
    @Override
    public int updateSalesService(SalesService salesService)
    {
        salesService.setUpdateTime(DateUtils.getNowDate());
        return salesServiceMapper.updateSalesService(salesService);
    }

    /**
     * 批量删除销告服务服务信息
     * 
     * @param ids 需要删除的销告服务服务信息主键
     * @return 结果
     */
    @Override
    public int deleteSalesServiceByIds(String[] ids)
    {
        return salesServiceMapper.deleteSalesServiceByIds(ids);
    }

    /**
     * 删除销告服务服务信息信息
     * 
     * @param id 销告服务服务信息主键
     * @return 结果
     */
    @Override
    public int deleteSalesServiceById(String id)
    {
        return salesServiceMapper.deleteSalesServiceById(id);
    }
}
